package com.atguigu.gulimall.ware.service;

import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.ware.entity.PurchaseEntity;
import com.atguigu.gulimall.ware.vo.MergeVO;
import com.atguigu.gulimall.ware.vo.PurchaseDoneVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;


/**
 * 采购信息
 *
 * @author szh
 * @email sssss@gmail.com
 * @date 2020-12-30 20:51:20
 */
public interface PurchaseService extends IService<PurchaseEntity> {

    PageUtils queryPage(Map<String, Object> params);

	/**
	 * 功能：查询没有领取得采购单
	 * @param params 查询入参
	 * @return
	 */
	PageUtils queryPageUnreceive(Map<String, Object> params);

	/**
	 * 功能：合并采购单
	 * @param mergeVO 合并入参vo对象
	 */
	void mergePurchase(MergeVO mergeVO);

	/**
	 * 功能：采购人员领取，分配给自己的采购任务
	 * @param ids 采购单id集合
	 */
	void received(List<Long> ids);

	/**
	 * 功能：完成采购需求
	 * @param doneVO 方法封装入参vo
	 */
	void done(PurchaseDoneVO doneVO);
}

